package com.zan.service;

import com.zan.entity.Orders;
import com.zan.vo.ResultVo;

import java.sql.SQLException;
import java.util.Map;

public interface OrderService {

    public Map<String, String> addOrder(String cids, Orders orders) throws SQLException;

    public int updateOrderStatus(String orderId, String status);

    public ResultVo getOrderById(String orderId);

    public void closeOrder(String orderId);

    public ResultVo listOrders(String userId, String status, int pageNum, int limit);

    public ResultVo listOrders2(String userId, String status, int pageNum, int limit);

}
